//
//  JJBaseViewController.swift
//  JJToolSwift
//
//  Created by heihei on 2024/5/8.
//

import UIKit

open class JJBaseViewController: UIViewController {

    open override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .hex("#efefef")
        creatNavigationBar()
        creatSubViews()
        // Do any additional setup after loading the view.
    }
    
    /// 创建导航栏
    open func creatNavigationBar() {
        addNavigationView(backImg: "back_black", titleFont: .customerFont(name: .pingFangSCMedium, size: 18), titleColor: .hex("#333333"))
    }
    
    /// 设置子视图
    open func creatSubViews() {
        
    }
    
    open override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        JJLog("=============== \(String(describing: type(of: self.self))) willAppear ==================")
    }
    
    deinit {
        JJLog("=============== \(String(describing: type(of: self.self))) deinit ==================")
    }

}
